* {
    margin: 0;
    padding: 0;
}

body {
    min-width: 1100px;
    color: #1A1A1A;
    font: 14px/1.5 Microsoft YaHei, Arial, Helvetica, sans-serif;
}

ul,
ol {
    list-style: none;
}

a {
    color: #1A1A1A;
    text-decoration: none;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}


.w1100 {
    width: 1100px;
    margin: 0 auto;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.red {
    color: red;
}

// 头部
header {
    background-image: linear-gradient(to bottom, #E7F7F0, #F5F7FB);
}

.topbar {
    height: 60px;

    .common>li {
        position: relative;
        float: left;

        .tr-hide {
            position: absolute;
            z-index: 45;
            width: 1000px;
        }

        .sub-nav {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            background-color: #fff;
            padding: 10px 0;
            transition: all .5s;

            li {
                line-height: 30px;
                min-width: 150px;
                padding: 0 15px;

                &:hover {
                    background-color: #F9F9F9;
                }



            }

            a {
                display: block;
                width: 100%;

                &:hover {
                    color: #45B823;
                }
            }
        }

        &:hover .sub-nav {
            display: block;
        }

        >a {
            position: relative;
            display: block;
            width: 100px;
            height: 60px;
            line-height: 60px;
            text-align: center;
            overflow: hidden;

            span {
                position: relative;
                z-index: 2;
                width: 100px;
                height: 60px;
            }

            &::after {
                position: absolute;
                left: 0;
                top: 56px;
                content: "";
                width: 100%;
                height: 100%;
                background-color: #A8E957;
                transition: top .2s;

            }
        }

        &:hover a::after {
            top: 0;
        }

    }

    .left {

        li:nth-child(1) a:after {
            background-color: #A8E957;
        }

        li:nth-child(2) a:after {
            background-color: #8DCFFB;
        }

        li:nth-child(3) a:after {
            background-color: #FFCB96;
        }

        li:nth-child(4) a:after {
            background-color: #FFC2D8;
        }

        li:nth-child(5) a:after {
            background-color: #86F5F0;
        }

        li:nth-child(6) a:after {
            background-color: #E4B6FF;
        }

        li:nth-child(7) a:after {
            background-color: #91ECFA;
        }
    }

    .right {

        li:nth-child(1) a:after {
            background-color: #FFC2D8;
        }

        li:nth-child(2) a:after {
            background-color: #A1D7FB;
        }
    }
}


.header-container {
    padding: 20px 0;

    h1 {
        width: 210px;
        height: 60px;
        font-size: 0;
    }
}

.search-box {
    position: relative;
    margin-top: 13px;
    width: 360px;
    height: 30px;
    background-color: #fff;
    border: 2px solid rgb(6, 173, 6);

    .search-type {
        position: absolute;
        width: 80px;
        height: 30px;
        border-right: 1px solid #EAEAEA;
        background-color: #fff;
        color: #666666;
        cursor: pointer;

        .click {
            text-align: center;
            line-height: 30px;
        }

        .list {
            display: none;
            position: absolute;
            z-index: 222;
            width: 100%;
            top: 30px;
            background-color: #fff;
            box-shadow: 0px 2px 3px #ccc;

            li {
                height: 30px;
                line-height: 30px;
                text-align: center;
                font-size: 12px;

                &:hover {
                    background-color: #E5E5E5;
                }
            }
        }

        &:hover .list {
            display: block;
        }
    }

    .search-text {
        position: absolute;
        left: 80px;
        width: 210px;
        height: 30px;
        padding: 0 15px;
        background-color: transparent;
        outline: none;
        border: none;

    }

    .search-button {
        position: absolute;
        right: 0;
        width: 40px;
        height: 100%;
        border: none;
        background-color: transparent;
        cursor: pointer;
        outline: none;

        &:hover {
            color: green;
        }
    }
}

.banner {
    position: relative;
    overflow: hidden;
    margin: 10px auto 0;

    .banner-view {
        position: relative;
        height: 100%;
        z-index: 9;
        background-repeat: no-repeat;

        i {
            position: relative;
            display: block;
            float: left;
            background-repeat: no-repeat;
        }
    }

    .banner-btn {
        position: absolute;
        width: 100%;
        height: 0;
        top: 45%;
        font-family: "宋体";
        font-size: 20px;
        z-index: 1000;

        span {
            position: relative;
            left: 0;
            display: block;
            float: left;
            width: 50px;
            line-height: 50px;
            text-align: center;
            background-color: #27CFC3;
            color: #fff;
            cursor: pointer;
            font-weight: bold;

            &:hover {
                background-color: rgba(0, 0, 0, 0.6);
            }

            &+span {
                float: right;
                margin-right: 1px;
            }
        }
    }

    .banner-number {
        position: absolute;
        bottom: 35px;
        width: 100%;
        height: 0;
        font-size: 0;
        text-align: center;
        z-index: 1000;

        &>* {
            display: inline-block;
            border: 2px solid #fff;
            border-radius: 50%;
            margin: 0 8px;
            width: 10px;
            height: 10px;
            background-color: #00c3ff;
            cursor: pointer;
        }

        &>*:hover,
        &>*.on {
            background-color: #ffc300;
        }
    }

    .banner-progres {
        display: none;
        width: 100%;
        position: absolute;
        bottom: 0;
        height: 3px;
        z-index: 1000;

        i {
            position: absolute;
            left: 0;
            top: 0;
            border-radius: 3px;
            display: block;
            height: 100%;
            width: 0;
        }
    }

}

// 主体
.main {

    h2 {
        position: relative;
        font-size: 16px;
        line-height: 24px;
        padding-left: 14px;
        padding-bottom: 8px;
        border-bottom: 1px solid #D0D6D9;

        &::before {
            position: absolute;
            left: 0;
            content: "";
            width: 4px;
            height: 24px;
            background-color: #69BCF3;

        }
    }
}

// 工具手册和最新动态
.home-box {
    height: 298px;
    margin-top: 30px;
}

.home-sider-l,
.home-sider-r {
    width: 240px;

    .conmon-list {
        border-bottom: 1px solid #D0D6D9;

        li {
            position: relative;
            height: 32px;
            line-height: 32px;
        }

        li+li {
            border-top: 1px dashed #e6e4e4;
        }
    }
}

.home-sider-l {
    float: left;

    .manual-list {
        li {
            &:nth-child(1) i {
                color: #A8E957;
            }

            &:nth-child(2) i {
                color: #8DCFFB;
            }

            &:nth-child(3) i {
                color: #FFCB96;
            }

            &:nth-child(4) i {
                color: #FFC2D8;
            }

            &:nth-child(5) i {
                color: #86F5F0;
            }

            &:nth-child(6) i {
                color: #E4B6FF;
            }

            &:nth-child(7) i {
                color: #91ECFA;
            }

            &:nth-child(8) i {
                color: #FF9595;
            }
        }

        a {
            position: absolute;
            overflow: hidden;
            left: 25px;
            height: 32px;

            &:hover span {
                transform: translateY(-32px);
            }

            span {
                position: relative;
                display: block;
                transition: all .2s;

                &::after {
                    position: absolute;
                    content: attr(data-hover);
                    left: 0;
                    top: 32px;
                    color: #45B823;
                }
            }
        }
    }
}

.home-sider-r {
    float: right;

    .latest-list {
        i {
            float: left;
            width: 18px;
            height: 18px;
            line-height: 18px;
            background-color: red;
            border-radius: 7px 8px 9px 0;
            margin: 7px 6px 0 0;
            font-size: 12px;
            font-style: normal;
            text-align: center;
            color: #fff;
            transition: all .4s;

        }

        li {
            &:nth-child(1) i {
                background-color: #FF0000;
            }
        }

        li {
            &:nth-child(2) i {
                background-color: #FF4E00;
            }
        }

        li {
            &:nth-child(3) i {
                background-color: #FF983D;
            }
        }

        li {
            &:nth-child(4) i {
                background-color: #FFDF8B;
            }
        }

        li {
            &:nth-child(5) i {
                background-color: #7EFBA4;
            }
        }

        li {
            &:nth-child(6) i {
                background-color: #6AEE92;
            }
        }

        li {
            &:nth-child(7) i {
                background-color: #44E574;
            }
        }

        li {
            &:nth-child(8) i {
                background-color: #28C256;
            }
        }

        a {
            &:hover {
                color: #45B823;

                i {
                    transform: rotate(360deg);
                }
            }
        }
    }
}


.home-center {
    float: left;
    width: 590px;
    height: 100%;
    margin: 0 14px;
}

.home-menu-rotate3d {
    height: 200px;
    margin-bottom: 10px;

    // 小盒子布局
    &>div {
        float: left;
        width: 190px;
        height: 200px;

        &.l {
            a:nth-child(1) {
                margin-bottom: 10px;
            }

            a:nth-child(2) {
                margin-right: 10px;
            }
        }

        &.c {
            margin: 0 10px;

            a:nth-child(1),
            a:nth-child(3) {
                margin-right: 10px;
            }

            a:nth-child(1) {
                margin-bottom: 10px;
            }

            a:nth-child(5) {
                margin-top: 10px;
            }
        }

        &.r {
            a:nth-child(1) {
                margin-right: 10px;
            }

            a:nth-child(3) {
                margin-top: 10px;
            }
        }
    }

    .small-box,
    .middle-box {
        position: relative;
        float: left;
        height: 60px;
        transform-style: preserve-3d;
        transition: all .2s;

        .front {
            position: absolute;
            left: 0;
            top: 0;
            transform: translateZ(30px);
            height: 60px;
            background: url(../img/middle_front.png) no-repeat;

        }

        .top {
            position: absolute;
            left: 0;
            top: -30px;
            height: 60px;
            line-height: 60px;
            background: url(../img/middle_back.png) no-repeat;
            color: #fff;
            font-size: 18px;
            text-align: center;
            transform: rotateX(90deg);
        }

        &:hover {
            transform: rotateX(-90deg);
        }

    }

    .small-box {
        width: 90px;
        background-color: #FDEAE4;

        .front {
            width: 90px;
            background: url(../img/small_front.png) no-repeat;
            background-size: 100%;
        }

        .top {
            width: 90px;
            background: url(../img/small_back.png) no-repeat;
            background-size: 100%;
        }
    }

    .middle-box {
        width: 190px;

        // 
        .front {
            width: 190px;
            background: url(../img/middle_front.png) no-repeat;

        }

        .top {
            width: 190px;
            background: url(../img/middle_back.png) no-repeat;
        }

        // &:after {
        //     position: absolute;
        //     top: -30px;
        //     content: "1";
        //     width: 100%;
        //     height: 100%;
        //     background-color: red;
        //     opacity: 0.5;
        //     transform: rotateX(92deg);
        // }


    }

    .big-box {
        position: relative;
        float: left;
        overflow: hidden;
        width: 190px;
        height: 130px;
        background: url(../img/big_front.png);

        .big-hide {
            position: absolute;
            top: -130px;
            width: 100%;
            height: 100%;
            color: #fff;
            background-color: rgba(145, 220, 255, 0.6);
            text-indent: 24px;
            transition: all .2s;

            h3 {
                margin: 30px 0 20px;
                font-size: 18px;
            }
        }

        &:hover .big-hide {
            top: 0;
        }
    }
}


.home-menu-rotate {
    height: 88px;
    background-color: #F3FAF6;

    ul {
        margin: 0 25px;

        li {
            float: left;
            width: 90px;
            height: 88px;

            &:nth-child(1) a:before {
                border: 12px solid #A8E957;
            }

            &:nth-child(2) a:before {
                border: 12px solid #8DCFFB;
            }

            &:nth-child(3) a:before {
                border: 12px solid #FFCB96;
            }

            &:nth-child(4) a:before {
                border: 12px solid #FFC2D8;
            }

            &:nth-child(5) a:before {
                border: 12px solid #86F5F0;
            }

            &:nth-child(6) a:before {
                border: 12px solid #E4B6FF;
            }
        }

        a {
            position: relative;
            display: block;
            font-size: 12px;
            text-align: center;
            padding: 8px 0;

            img {
                width: 50px;
                height: 50px;
                transition: all .6s;
            }

            &:before {
                position: absolute;
                top: -4px;
                left: 8px;
                content: "";
                width: 50px;
                height: 50px;
                border-radius: 50%;
                opacity: 0;
            }

            &:hover {
                color: green;

                img {
                    transform: rotate(360deg);

                }

                &:before {
                    animation: round 1s infinite;
                }
            }
        }
    }

    @keyframes round {
        0% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            transform: scale(1.5);
        }
    }
}

// 前端入门和前端进阶
.course-box {
    height: 185px;
    margin-top: 30px;
}

.course-list {
    margin-top: 12px;

    a {
        position: relative;
        float: left;
        overflow: hidden;
        width: 200px;
        height: 140px;
        background-color: darkgrey;
        box-shadow: 0px 3px 10px darkgrey;

        &+a {
            margin-left: 25px;
        }

        &:hover figcaption {
            bottom: 0;
        }
    }

    img {
        width: 200px;
        height: 140px;
    }

    figcaption {
        position: absolute;
        bottom: -50px;
        height: 80px;
        padding: 0 15px;
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #fff);
        transition: all .2s;

        i {
            float: left;
            width: 18px;
            height: 18px;
            line-height: 18px;
            font-style: normal;
            font-size: 12px;
            text-align: center;
            color: #fff;
            background-color: #C0C0C0;
            margin: 9px 6px 0 0;
        }

        h3 {
            height: 36px;
            line-height: 36px;
        }

        p {
            font-size: 12px;
        }
    }

}

// 网站简介和评价
.website-introduction {
    height: 480px;
    margin-top: 30px;

    aside {
        width: 240px;
        height: 100%;


        .pic-box {
            position: relative;
            overflow: hidden;

            img {
                width: 240px;
                height: 180px;
                vertical-align: top;
            }

            &::before {
                position: absolute;
                content: "";
                width: 100px;
                height: 180px;
                transform: translateX(-150px) skewX(-30deg);
                background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);

            }

            &:hover::before {
                animation: whiteLight 1s;
            }

            @keyframes whiteLight {
                100% {
                    transform: translateX(300px) skewX(-30deg);
                }
            }

        }

        a {
            position: relative;
            display: block;
            width: 240px;
            height: 40px;
            line-height: 40px;
            color: #fff;
            background-color: #27CFC3;
            margin-top: 15px;
            font-size: 15px;
            font-weight: bold;
            text-align: center;

            span {
                display: none;
                position: absolute;
                left: 16px;
                top: -80px;
                // transform: translateY(-90px);
                border: 1px solid #D0D6D9;
                width: 190px;
                height: 40px;
                color: #000;
                background-color: #fff;
                line-height: 20px;
                font-weight: normal;
                font-size: 12px;
                text-align: left;
                padding: 10px 8px;
                transition: all .4s .5s;
                opacity: 0;

                &::after {
                    position: absolute;
                    bottom: -9px;
                    left: 50%;
                    margin-left: -8px;
                    content: "";
                    width: 15px;
                    height: 15px;
                    border-right: 1px solid #D0D6D9;
                    border-bottom: 1px solid #D0D6D9;
                    background-color: #fff;
                    transform: rotate(45deg);
                }
            }

            &:hover {
                background-color: #1BB2A8;

                span {
                    display: block;
                    opacity: 1;
                    // transform: translateY(-75px);
                }
            }
        }

        h2 {
            border-bottom: 1px solid #D0D6D9;
            padding: 0 0 15px 0;
            margin-top: 20px;

            &::before {
                display: none;
            }
        }

        p {
            margin-top: 15px;
        }
    }

    .comment {
        float: right;
        width: 810px;
        height: 100%;

        .comment-list {
            padding: 10px 0 0 0;

            article {
                position: relative;
                background-color: #fff;
                padding: 12px 0 12px 20px;

                .beautify {
                    position: absolute;
                    left: 0;
                    top: 50%;
                    margin-top: -8px;
                    width: 14px;
                    height: 100px;
                    z-index: 999;

                    &::before {
                        position: absolute;
                        content: "";
                        left: 0;
                        top: 0;
                        width: 10px;
                        height: 10px;
                        border-radius: 50%;
                        background-color: #fff;
                        border: 2px solid #CDD2D9;
                    }

                    &::after {
                        position: absolute;
                        content: "";
                        left: 6px;
                        top: 14px;
                        width: 2px;
                        height: 100px;
                        background-color: #CDD2D9;
                    }
                }

                &:last-child .beautify::after {
                    display: none;
                }

            }

            article+article {
                border-top: 1px dashed #eee;
            }
        }

        .comment-user {
            float: left;
            width: 80px;
            height: 73px;
            padding-top: 9px;
            // padding: 8px 0;
            text-align: center;

            .avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                transition: all .4s;

                &:hover {
                    transform: rotate(360deg);
                }
            }

            .name {
                color: #E74851;
                font-size: 12px;
            }
        }

        .comment-text {
            position: relative;
            float: right;
            width: 646px;
            height: 40px;
            line-height: 22px;
            padding: 20px 30px;
            margin-right: 2px;
            border: 1px solid #EEEEEE;
            border-radius: 5px;

            &::before {
                position: absolute;
                content: "";
                left: -9px;
                top: 0;
                bottom: 0;
                margin: auto;
                width: 15px;
                height: 15px;
                background-color: #fff;
                border-left: 1px solid #EEEEEE;
                border-bottom: 1px solid #EEEEEE;
                transform: rotate(45deg);
            }

            &:hover {
                box-shadow: 0 0 3px rgb(223, 203, 203);
            }

            .icon-icon-copy-copy {
                position: absolute;
                left: 8px;
                top: 4px;
                color: #EB553F;
            }

            .icon-icon-quote {
                position: absolute;
                right: 10px;
                bottom: 0px;
                color: #EB553F;
            }
        }

    }
}

// 尾部
footer {
    margin: 20px auto 0;

    .friendlink {
        position: relative;
        height: 20px;
        padding: 12px 80px;
        border: 1px solid #D0D6D9;
        transform-style: preserve-3d;

        a {
            position: relative;
            float: left;
            height: 20px;
            line-height: 20px;
            margin: 0 10px;
            overflow: hidden;

            span {
                position: relative;
                display: block;
                content: attr(data-hover);
                height: 50px;
                transition: all .2s;

                &::after {
                    position: absolute;
                    content: attr(data-hover);
                    left: 0;
                    bottom: 0;
                    color: #45B823;
                }

            }

            &:hover span {
                transform: translateY(-30px);
            }
        }

        &::before {
            position: absolute;
            top: -10px;
            left: -1px;
            content: "友情链接";
            width: 36px;
            height: 70px;
            color: #fff;
            background-color: #FFAE5B;
            text-align: center;
            font-weight: bold;
        }

        &::after {
            position: absolute;
            content: "";
            bottom: -30px;
            left: 4px;
            width: 26px;
            height: 26px;
            background-color: #fff;
            transform: rotate(45deg);
        }
    }

    .footer-info {
        text-align: center;
        font-size: 13px;

        a {
            &:hover {
                color: #45B823;
                text-decoration: underline;
            }
        }

        .footer-link {
            margin: 30px 0 6px;
            height: 35px;
            line-height: 35px;
            background-color: #F6F6F6;
        }

        .footer-advice {
            font-weight: bold;
        }

        .footer-copyright {
            font-size: 12px;
        }
    }
}